using System;
using System.Collections.Generic;
using System.Text;

namespace ShuJuGj.Entity.InData
{
    public class BaseInData
    {
        private string servicecode;

        public string Servicecode
        {
            get { return servicecode; }
            set { servicecode = value; }
        }

        private string daqtaskid;

        public string Daqtaskid
        {
            get { return daqtaskid; }
            set { daqtaskid = value; }
        }

        private string datacompress;

        public string Datacompress
        {
            get { return datacompress; }
            set { datacompress = value; }
        }

        private string standardcode;

        public string Standardcode
        {
            get { return standardcode; }
            set { standardcode = value; }
        }

        private string condition;

        public string Condition
        {
            get { return condition; }
            set { condition = value; }
        }

        public string GetInXml()
        {
            string inXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><messages xmlns=\"http://www.neusoft.com/hit/rhin\"><heartbeat/><switchset><authority><authoritytype/><username/><userpwd/><license>b163ca643603b26ce9937865edbd264c</license></authority><visitor><sourceorgan>" + Constants.SOURCEORGAN + "</sourceorgan><sourcedomain>" + Constants.SOURCEDOMAIN + "</sourcedomain></visitor><serviceinf><servicecode>" + servicecode + "</servicecode></serviceinf><provider><targetorgan/><targetdomain/></provider><route/><process/></switchset><business><standardcode>" + standardcode + "</standardcode><requestset><reqcondition><condition>" + condition + "</condition></reqcondition><reqpaging/><reqpageindex/><reqpageset/></requestset><datacompress>" + datacompress + "</datacompress><daqtaskid>" + daqtaskid + "</daqtaskid><businessdata>" + GetBussinessDataXml() + "</businessdata></business><extendset/></messages>";
            return inXml;
        }

        public virtual string GetBussinessDataXml()
        {
            return string.Empty;
        }
    }
}